//Begin code

var aseo = {
 tag:"{tâm lý, blogphim, hành động,phim bộ}",num:"",ap:"KHO PHIM HAY VÀ THỦ THUẬT HOT",as:'Chào mừng các bạn đến với website phim, thủ thuật internet'
}
veo = "{domain},{subdomain}";

function s_write(keysite,keyapi)
{
 surl = 'https://api.tynt.com/publisher/v1/keyword/inbound?site_guid='+keysite+'&api_key='+keyapi+'&hours=12&callback=ancseo';
 var sr = document.createElement('script');
 sr.src = surl;
 document.getElementsByTagName('head')[0].appendChild(sr);
 
 sdata = "if(document.location.protocol=='http:'){"
   +"var Tynt=Tynt||[];Tynt.push('"+keysite+"');"
   +'Tynt.i={"ap":"'+aseo.ap+'","as":"'+aseo.as+'","st":true};'
   +"(function(){var s=document.createElement('script');"
   +'s.async="async";s.type="text/javascript";'
   +"s.src='http://tcr.tynt.com/ti.js';var h=document.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);})();}";
 
 var srr = document.createElement('script');
 srr.innerHTML = sdata;
 document.getElementsByTagName('head')[0].appendChild(srr);
   
}

function ancseo(x){

 num_seo = x.data.length;

 for(var i=0; i<num_seo; i++){
  veo += x.data[i];
 }
 
 var meta = document.createElement('meta');
 meta.name = 'keywords';
 meta.content = veo.replace(/\,[\d]*/gi,",") + aseo.tag;
 document.getElementsByTagName('head')[0].appendChild(meta);
  
  aseo.tag =  veo + aseo.tag; 
   
}

function diseo(name,content){

  var mt = document.createElement('meta');
 mt.name = name;
 mt.content = content;
 document.getElementsByTagName('head')[0].appendChild(mt);
}

//Endcode 